package com.cvit.cn.test;

import java.util.Calendar;
import java.util.Random;
import java.util.UUID;

public class UuidUtil {

	public static String get32UUID() {
		String uuid = UUID.randomUUID().toString().trim().replaceAll("-", "");
		return uuid;
	}
	public static String getUUID(int num) {
		Random rd = new Random(); 
		String uuid = "";
		for(int i = 0;i< num;i++){
			uuid += rd.nextInt(10)+"";
		}
		return uuid;
	}
	public static String get32NUMUUID() {
		Calendar calendar = Calendar.getInstance();
		String uuid=  calendar.getTime().getTime()+"";
		if(uuid.length() != 13){
			
		}
		return uuid;
	}
	public static void main(String[] args) {
		System.out.println(getUUID(13));
	}
	
}
